$(()=>{
    $("aside>ul>li>a").click(function (e){
        e.preventDefault();
        let url = $(this).attr("href");
        $(".main>iframe").attr("src",url);
    })

    $("#logout").click(function(e){
        e.preventDefault();
        location.href = ctx + "user/logout";
    })
    $("#editPwd").click(function (e){
        e.preventDefault();
        console.log("点击修改密码按钮");
        layer.open({
            type: 2,
            title: '商品信息详情',
            shadeClose: true,
            shade: false,
            maxmin: true, //开启最大化最小化按钮
            area: ['500px', '600px'],
            content: ctx + "user/editPwd"
        })
        // location.href = ctx + "user/editPwd";
    })
    // $("#svg").hover(function (){
    //     let $function = $("#function");
    //     $function.css("display","block");
    // })
    $("#svg").click(function (e){
        e.preventDefault();
        let $function = $("#function");
        $function.css("display","block");
    })
    $("#function").hover(function (){
        let $function = $("#function");
        $function.css("display","block");
    },function (){
        let $function = $("#function");
        $function.css("display","none");
    })

})